package com.movitech.mobile.cz.base.purchase.mapper.ext;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.movitech.mobile.cz.base.purchase.entity.ext.ExtWFlowForm;
import com.movitech.mobile.cz.base.purchase.entity.ext.WFowFormListReq;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 流程表单主表 Mapper 接口
 * </p>
 *
 * @author Movitech Mobile
 * @since 2018-03-15
 */
@Component
@Mapper

public interface ExtWFlowFormMapper extends BaseMapper<ExtWFlowForm> {
    List<ExtWFlowForm> selectExtList(Page<ExtWFlowForm> page, WFowFormListReq wFowFormListReqVO);
    List<ExtWFlowForm> selectSimList(Page<ExtWFlowForm> page, WFowFormListReq wFowFormListReqVO);
    List<ExtWFlowForm> selectExtList( WFowFormListReq wFowFormListReqVO);
    
    /**
     * 获取招标文件基本信息
     * @param flowFormId
     * @return
     */
	ExtWFlowForm getBiddingDocumentBaseInfoByFlowFormId(@Param("flowFormId") String flowFormId);

    Integer getMyFormListCount(Map<String, Object> map);

    List<ExtWFlowFormMapper> getMyFormList(Map<String, Object> map);

    ExtWFlowForm getExtById(String formId);
}
